def main():
    print(input()[::-1])
    pass


if __name__ == '__main__':
    main();
